//{{AFX_INCLUDES()
#include "isis.h"	// Added by ClassView
#include "MyIsisMarcZ.h"
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_SEARCHZ3950_H__5C05BBEF_E445_4FE0_929B_4855689998E0__INCLUDED_)
#define AFX_SEARCHZ3950_H__5C05BBEF_E445_4FE0_929B_4855689998E0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SearchZ3950.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSearchZ3950 dialog

#include <afxcmn.h>

class CSearchZ3950 : public CDialog
{
// Construction
public:
	CString ObtenerOperadorIsis(int);
	CString ParsingIsis();
	CString m_operacion;
	void AssignTypeOperation(CString);
	void AssignHandler(CMyIsisMarcZ);
	CImageList* m_pImageList;
	CMyIsis cmiServers;
	CMyIsisMarcZ cmiBusquedas;
	CString Preprocesar (CString);
	CSearchZ3950(CWnd* pParent = NULL);   // standard constructor
	~CSearchZ3950();
	

// Dialog Data
	//{{AFX_DATA(CSearchZ3950)
	enum { IDD = IDD_DIALOGZ3950 };
	CStatic	m_LimitsLabel;
	CStatic	m_ExpressionLabel;
	CButton	m_SelectAll;
	CComboBox	m_LimiteResultados;
	CStatic	m_LabelServers;
	CComboBox	m_Operador1;
	CComboBox	m_Operador2;
	CComboBox	m_Campo3;
	CComboBox	m_Campo2;
	CComboBox	m_Campo1;
	CEdit	m_Expresion3;
	CEdit	m_Expresion2;
	CEdit	m_Expresion1;
	CListCtrl	m_ListaDestinos;
	CButton	m_BotonGo;
	CButton	m_Search;
	CButton	m_Cancelar;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSearchZ3950)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSearchZ3950)
	virtual BOOL OnInitDialog();
	afx_msg void OnCancelMode();
	afx_msg void OnSelchangeListaServers();
	afx_msg void OnClose();
	afx_msg void OnBotonGo();
	afx_msg void OnSeleccionarTodos();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString ObtenerAtributo(int);
	CString ObtenerOperador(int);
	CString CalcularExpresion(CString,CString,CString);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SEARCHZ3950_H__5C05BBEF_E445_4FE0_929B_4855689998E0__INCLUDED_)
